
#include <iostream>
#include <vector>
#include "trim.h"
using namespace std;
typedef struct conf_info
{
	char *key;
	char *value;
}Conf_info;

class SConfig
{
	private:
		vector<Conf_info>clist;
	public:
		bool ParesFile(const char* file);//解析一个配置文件			
	
		void get_key_value(Conf_info *confd,char* text);
		void print_conf();
		bool GetConfigInt(const char *key,int &val);
		bool GetConfigFloat(const char *key,float &val);
		bool GetConfigString(const char *key,char** str);
		~SConfig();

};



